package com.clear.honghefinance.biz.modules.currency.converter;

import com.clear.honghefinance.biz.modules.currency.domain.dto.CreateCurrencyConfigDTO;
import com.clear.honghefinance.biz.modules.currency.domain.dto.UpdateCurrencyConfigDTO;
import com.clear.honghefinance.biz.modules.currency.domain.entity.CurrencyConfig;
import com.clear.honghefinance.biz.modules.currency.domain.vo.GetCurrencyConfigDetailVO;
import com.clear.honghefinance.biz.modules.currency.domain.vo.ListCurrencyConfigVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CurrencyConfigConverter {

    CurrencyConfigConverter INSTANCE = Mappers.getMapper(CurrencyConfigConverter.class);

    GetCurrencyConfigDetailVO convertCurrencyConfigEntityToGetCurrencyConfigDetailVO(CurrencyConfig entity);

    CurrencyConfig convertDTOToCurrencyConfigEntity(CreateCurrencyConfigDTO dto);

    CurrencyConfig convertDTOToCurrencyConfigEntity(UpdateCurrencyConfigDTO dto);

    List<ListCurrencyConfigVO> convertCurrencyConfigEntityToListCurrencyConfigVO(List<CurrencyConfig> entitys);
}
